<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/head.jsp"%>
<br><br>
   jsp:include page:
   <jsp:include page="/include.jsp"></jsp:include><br>
   include file:
   <%@ include file="/include.jsp"%><br>

	 
	<%
		//RequestDispatcher rd=request.getRequestDispatcher("/include.jsp");
		//rd.forward(request,response);
		//和<jsp:forward page="/include.jsp"></jsp:forward>等价
	%> 
   <%!
	int i = 0;//全局变量
	private int count() {
		i++;
		return i;
	}
   %>

	调用count()方法后：i=
	<%=count()%>
<br><br>
	<%
		int j = 10; //局部变量
		j = j + 1;
	%>
	输出j=
	<%=j%>
	
<br><br>

<%@ include file="/footer.jsp"%>